package com.lab.component.common;

import android.support.v4.app.FragmentManager;


/**
 * Created by ak
 * UIController控制接口
 */
public interface IUIController {

    /**
     * 获取优化FragmentManager <br>
     * 解决内嵌Fragment操作FragmentManager异常问题
     *
     * @return
     */
    FragmentManager getOptimizedFragmentManager();

    /**
     * 显示DialogFragment
     *
     * @param dialog
     */
    void showDialogFragment(BaseDialogFragment dialog);

    /**
     * 隐藏DialogFragment
     *
     * @param dialog
     */
    void hideDialogFragment(BaseDialogFragment dialog);

}
